﻿using Ping.Core;

namespace Ping.App.Jobs
{
	/// <summary>
	/// An abstract job from the client's perspective.
	/// </summary>
	public abstract class Job
	{
		private readonly Connection _connection;

		protected Job(Connection connection)
		{
			_connection = connection;
		}

		public Connection Connection
		{
			get { return _connection; }
		}

		public abstract void Perform(Request request, RequestHandler handler);
	}
}